/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package camel.client;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author mac
 */
public class CommandPack implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private SessionTicket ticket;
    private List<ClientEvent> cmdList;

    public CommandPack(SessionTicket ticket) {
        this.ticket = ticket;
        if ( this.ticket == null) {
            this.ticket = new SessionTicket();
        }
        cmdList = new ArrayList<ClientEvent>();
    }

    public SessionTicket getTicket() {
        return ticket;
    }

    public void setTicket(SessionTicket ticket) {
        this.ticket = ticket;
    }

    public List<ClientEvent> getCmdList() {
        return cmdList;
    }

    public void setCmdList(List<ClientEvent> cmdList) {
        this.cmdList = cmdList;
    }
    
    public void addCommand (ClientEvent cmd) {
        this.cmdList.add(cmd);
    }
}
